<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title>Test Case for Issue #2209</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<h1>Issue #2209</h1>

<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=2209">Issue #2209</a>
- <span class="h3">JSONP responses do not show the JSON tab</span>.
<br/>
<i>Jan Odvarko, odvarko@gmail.com</i>
</p>

<ol>
    <li>Open Firebug and enable the Net panel.</li>
    <li>Click on the <code style="color:green">Execute Test</code> button below.</li>
    <li>Expand new entry in the Net panel. The JSON tab must exist and display a JSON response.</li>
</ol>

<button id="executeTest" onclick="executeTest();">Execute Test</button>

<br/><br/>

<pre id="response"></pre>

<script type="text/javascript">
function executeTest(callback)
{
    var request = new XMLHttpRequest();
    request.open("POST", "issue2209.json", true);

    request.onreadystatechange = function()
    {
        if (request.readyState == 4 && request.status == 200)
        {
            document.getElementById("response").innerHTML = request.responseText;
        }
    }

    request.send(null);
}
</script>

</body>
</html>
